package com.english_test_sys.mapper;

import com.english_test_sys.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;


@Mapper
public interface UserMapper {
    User findByUsername(String username);
    void insert(User user);
    int updateScoreByUsername(@Param("username") String username, @Param("score") Integer score);
}